package com.itheima.app;

import com.itheima.config.SpringConfig7;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ClassName: App7
 * Description:
 * Date: 2023/03/22 PM 10:19:36
 * <p>
 * project: springboot
 * package: com.itheima.app
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class App7 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig7.class);
        String[] names = ctx.getBeanDefinitionNames();
        for (String name : names) {
            System.out.println(name);
        }
        System.out.println("----------------");
    }
}
